﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;

namespace _1042009_1042034
{
    class ComboBoxLoaiPhong:ComboBox
    {
        public void Load()
        {
            List<LoaiPhongDTO> lst = Business.LoaiPhongService.LayDanhSach();
            this.DataSource = lst;
            this.DisplayMember = LoaiPhongDTO.DisplayMember;
            this.ValueMember = LoaiPhongDTO.ValueMember;
        }
    }
}
